﻿using ServiceCore;
using System;
using System.Collections.Generic;
using System.Text;

namespace Entity
{
    public class slot_template
    {
        public string template_id { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary> 
        public DateTime addtime { get; set; }
        /// <summary>
        /// 添加人
        /// </summary>
        public string adduser { get; set; }

        public string adduser_name { get; set; }
        /// <summary>
        /// 模板名称
        /// </summary>
        public string template_name { get; set; }
        /// <summary>
        /// 模板编号
        /// </summary>
        public int template_No { get; set; }
        /// <summary>
        /// 用于搜索和显示的模板信息
        /// </summary>
        public string show_No { get; set; }
        /// <summary>
        /// 机器类型
        /// </summary>
        public Mch_Type Mch_Type { get; set; }
        /// <summary>
        /// 机器类型
        /// </summary>
        public string mch_kid_type { get; set; }
        /// <summary>
        /// 机器类型id (选择时使用)
        /// </summary>
        public string mch_kid_type_id { get; set; }
        /// <summary>
        /// 是否可用
        /// </summary>
        public bool CanUse { get; set; }
        /// <summary>
        /// 货道组  json方式储存 因为不涉及搜索 所以可以直接储存数据串 
        /// </summary>
        public string slot_group { get; set; }   //SlotGroup 
        public bool? Isdelete { get; set; } = false;
    }
    /// <summary>
    /// 添加货道组信息
    /// </summary>
    public class SlotGroup
    {
        public int? row_index { get; set; }
        public string hight { get; set; }

        public List<column> column_list { get; set; }
    }
    public class column
    {
        public int? column_index { get; set; }

        public int? count { get; set; }
    }

    public class slotItem
    {
        public int index { get; set; }
        public int maxcount { get; set; }

        public string height { get; set; }
    }

    public class get_template_list_params : Base_List_Params
    {
        public Mch_Type? mch_type { get; set; }
        /// <summary>
        /// 机器分类信息
        /// </summary>
        public string mch_kid_type_id { get; set; }
        /// <summary>
        /// 搜索类型
        /// </summary>
        public template_search_type? search_type { get; set; }
        /// <summary>
        /// 搜索值
        /// </summary>
        public string search_key { get; set; }
    }

    public enum template_search_type
    {
        编号 = 0,
        模板名称 = 1
    }
}
